package net.xju_13_14.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor // 有参构造
public class Student {
    private String msg;
    private Integer sid;
    private String name;
    private String age;
    private String course;


    public Student() {
        System.out.println("Student对象创建了");
    }

    public void study() {
        System.out.println("学生在学习"+msg);
    }
}
